<%@page contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="org.team.sdsc.datamodel.*" %>


<%
  
try {  

     Network network = NetworkFactory.newInstance();
     int totalImageNumber = network.getPhotoTotalSize();
     int processedImageNumber = network.getProcessedPhotoTotalSize();
     network.close();

     out.println("{");
     out.println("   success: true,");
     out.println("   total: "+totalImageNumber+",");
     out.println("   annotated: "+processedImageNumber+",");
     out.println("}");

} catch (Exception e) {

     out.println("{");
     out.println("   success: false");
     out.println("}");
}
%>